#include<iostream>
#include<signal.h>
#include <unistd.h>

int main(int argc,char *argv[]){
    if(argc!=3){
        std::cout<<"Usage: "<<argv[0]<<" pid signal"<<std::endl;
        return 1;
    } 
    pid_t pid = atoi(argv[1]);
    //std::cout<<pid<<std::endl;
    int sig = atoi(argv[2]+1);
    alarm(2);
    //kill(pid, sig);
    return 0;
}